class AppConfig {
  // static const String apiBaseUrl = 'http://172.19.32.80:9091/api';
  static const String apiBaseUrl = 'http://127.0.0.1:9091/api';

  static const int connectTimeout = 15000;
  static const int receiveTimeout = 15000;

  static const String accessTokenKey = 'access_token';
  static const String refreshTokenKey = 'refresh_token';

  static const String userInfoKey = 'user_info';

  static const String defaultLanguage = 'zh_CN';

  static const int pageSize = 10;

  // 环境配置
  static const bool isDevelopment = true; // 开发模式标识

  // 图片上传配置
  static const int maxImageSize = 5 * 1024 * 1024; // 5MB
  static const List<String> allowedImageTypes = ['jpg', 'jpeg', 'png'];

  // 缓存配置
  static const Duration cacheDuration = Duration(days: 7);

  // 请求重试配置
  static const int maxRetries = 3;
  static const Duration retryInterval = Duration(seconds: 1);
}